﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Error : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        HttpContext ctx = HttpContext.Current;
        try {
            lblErrorDetails.Text = HttpContext.Current.Cache["lasterr"].ToString(); // error details cached in Global.asax
        } catch {
            lblErrorDetails.Text = "Error details are not available";
        }
        ctx.Server.ClearError();
    }
}
